package com.rd.student.jiaji.class4.suyan.zrrd.day05;

public class Demo04 {
    public static void main(String[] args) {
        //数组名【索引】=值；
        //创造一副扑克牌
        //创造一套1-13的扑克牌
        int[] arr = new int[13];//保存值的数组
        for (int i=0;i<arr.length;i++){
            arr[i]=i+1;
        }
        String[] arr1 = new String[]{"红桃","方片","梅花","黑桃"};//保存花色数组
        String[] card =new String[54];//保存所有扑克的数组
        int count=0;
        for (int i=0;i<arr1.length;i++){
            for (int j=0;j<arr.length;j++){
                card[count++] =arr1[i]+arr[j];
            }
        }
        //检查card数组中的值
        card[count++]="小王";
        card[count]="大王";
        for (int i=0;i<card.length;i++){
            System.out.println(card[i]);
        }

    }
}
